//#define _CRT_SECURE_NO_WARNINGS 1
//#include<iostream>
//using namespace std;
//class Complex
//{
//private:
//	int real;
//	int image;
//public:
//	Complex(int r,int i):real(r),image(i){}
//	//friend Complex& operator+=(Complex& c1, Complex& c2);
//	//friend Complex& operator-=(Complex& c1, Complex& c2);
//	void print()
//	{
//		cout << "(" << real << "," << image << "i)" << endl;
//	}
//	Complex& operator+=(Complex&another)
//	{
//		this->real += another.real;
//		this->image += another.image;
//		return *this;
//	}
//	Complex& operator-=(Complex& another)
//	{
//		this->real -= another.real;
//		this->image -= another.image;
//		return *this;
//	}
//
//};
//#if 0
//Complex& operator+=(Complex& c1, Complex& c2)
//{
//	c1.real += c2.real;
//	c1.image += c2.image;
//	return c1;
//}
//#endif
//#if 0
//Complex& operator-=(Complex& c1, Complex& c2)
//{
//	c1.real -= c2.real;
//	c1.image -= c2.image;
//	return c1;
//}
//#endif
//int main()
//{
//	Complex c1(2, 3);
//	Complex c2(3, 4);
//	//c1.operator+=(c2).operator+=(c2);
//	//c1.print();
//	//(c1 += c2)+=c2;
//	//c1.print();
//	//(c1 -= c2) -= c2;
//	//c1.print();
//	(c1 -= c2) -= c2;
//	c1.print();
//	return 0;
//}